{% extends "list_edit_base.html" %}
{% load bootstrap3 %}
{% block title %} 系统设置列表 {% endblock %}
{% block table_body %}
<table class="table small">
    <thead>
        <tr>
            <th>id</th>
            <th>名称</th>
            <th>值</th>
            <th>描述</th>
            <th>编辑</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {% for item in item_list %}
            <tr id="item_{{ item.id }}">
                <td>{{ item.id }}</td>
                <td id="item_{{item.id}}_name">{{ item.name }}</td>
                <td id="item_{{item.id}}_value">{{ item.value }}</td>
                <td id="item_{{item.id}}_desc">{{ item.desc }}</td>
                <td id="item_{{item.id}}_lastEditor">{{ item.lastEditor }}</td>
                <td>
                    <a href={% url editurl item.id %} type="button">
                        <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
                    </a>
                    <a href={% url "settings_del" item.id %} onclick="return confirm('确认删除？')">
                        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                    </a>
                </td>
            </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
{%block script%}

{%endblock%}
